<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JavaBean为属性赋值</title>
</head>
<body>
	<jsp:useBean id="produce" class="com.jsp.study.bean.Produce2"></jsp:useBean>
	<jsp:setProperty property="name" name="produce" value="aa" />
	<jsp:setProperty property="price" name="produce" value="100" />
	<jsp:setProperty property="count" name="produce" value="1" />
	<jsp:setProperty property="factoryAdd" name="produce" value="bb" />
	<div>
		<ul>
			<li>商品名称:<jsp:getProperty property="name" name="produce" /></li>
			<li>价格:<jsp:getProperty property="price" name="produce" /></li>
			<li>数量:<jsp:getProperty property="count" name="produce" /></li>
			<li>厂址:<jsp:getProperty property="factoryAdd" name="produce" /></li>
		</ul>
	</div>
</body>
</html>